package com.k12.admim.service;

import com.k12.admim.model.entity.sys.SysRole;
import com.k12.admim.model.entity.sys.SysUser;
import com.k12.admim.model.vo.sys.SysRoleVo;
import com.k12.admim.model.vo.sys.SysUserVo;
import com.k12.common.model.resp.R;

import java.util.List;

public interface OperatorRoleService {

    R insertRole(SysRoleVo sysRoleVo);

    List<SysRole> selectRoleList(SysRoleVo sysRoleVo);

    void checkRoleDataScope(Long roleId,String tenantId);

    SysRole selectRoleById(Long roleId, String tenantId);


    R deleteRoleIds(String tenantId, String loginId, Long[] roleIds);

    R authDataScope(SysRole role);

    List<SysUser> allocatedList(SysUserVo userVo);

    int insertAuthUsers(Long roleId, Long[] userIds,String tenantId);
}
